package com.yejiali.backend.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yejiali.backend.entity.Patients;
import com.yejiali.backend.entity.dto.PatientsDTO;
import com.yejiali.backend.response.Response;

/**
 * (Patients)表服务接口
 *
 * @author yejiali
 * @since 2025-05-15 11:14:23
 */
public interface PatientsService extends IService<Patients>{
    Response initData(int currentPage, int pageSize);

    Response queryByName(String patientName,int currentPage, int pageSize);

    Response queryByIdcard(String idCard);

    Response deleteById(Long patientid);

    Response queryById(Long patientid);

    Response add(PatientsDTO patientsDTO);

    Response deleteByIdCard(String idCard);

    /**
     * 根据病人id获取病例
     * @param
     * @return
     */
    Response getCasesByPatientId(Long patientId) ;
}
